﻿//
// Created: 2018/11/19
// Author: chenqiang
//
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Model.Util;

namespace Model.Util.Map
{
    internal  class UserOprateLogMap:EntityTypeConfiguration< UserOprateLog >    
    {
        public UserOprateLogMap()
        {
             this.ToTable("UserOprateLog");
             this.HasKey(i => new { i.LogID });
             this.Property(i => i.LogID).HasColumnName("LogID");                     
             this.Property(i => i.OprateType).HasColumnName("OprateType");                     
             this.Property(i => i.OprateName).HasColumnName("OprateName");                     
             this.Property(i => i.UserID).HasColumnName("UserID");                     
             this.Property(i => i.RefID).HasColumnName("RefID");                     
             this.Property(i => i.Domain).HasColumnName("Domain");                     
             this.Property(i => i.RefUrl).HasColumnName("RefUrl");                     
             this.Property(i => i.CreateTime).HasColumnName("CreateTime");                     
             this.Property(i => i.Remark).HasColumnName("Remark");                     
        }   
    }
    
     public static class UserOprateLogMapExtensions
    {
        public static void UserUserOprateLogMap(this DbModelBuilder pModelBuilder)
        {
            pModelBuilder.Configurations.Add(new UserOprateLogMap());
        }
    }
}